/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package ecarx.xsf.notificationcenter.base.push.model.payload;

import android.os.Parcel;
import android.os.Parcelable;

public class PushMsgContent implements Parcelable {

    private String icon;
    private String title;
    private String text;
    private String btnInfo;
    private String detailTxt;
    private String detailImg;
    private String detailUrl;

    public PushMsgContent() {

    }

    public PushMsgContent(String icon, String title, String text, String btnInfo, String detailTxt, String detailImg, String detailUrl) {
        this.icon = icon;
        this.title = title;
        this.text = text;
        this.btnInfo = btnInfo;
        this.detailTxt = detailTxt;
        this.detailImg = detailImg;
        this.detailUrl = detailUrl;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getBtnInfo() {
        return btnInfo;
    }

    public void setBtnInfo(String btnInfo) {
        this.btnInfo = btnInfo;
    }

    public String getDetailTxt() {
        return detailTxt;
    }

    public void setDetailTxt(String detailTxt) {
        this.detailTxt = detailTxt;
    }

    public String getDetailImg() {
        return detailImg;
    }

    public void setDetailImg(String detailImg) {
        this.detailImg = detailImg;
    }

    public String getDetailUrl() {
        return detailUrl;
    }

    public void setDetailUrl(String detailUrl) {
        this.detailUrl = detailUrl;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.icon);
        dest.writeString(this.title);
        dest.writeString(this.text);
        dest.writeString(this.btnInfo);
        dest.writeString(this.detailTxt);
        dest.writeString(this.detailImg);
        dest.writeString(this.detailUrl);
    }

    protected PushMsgContent(Parcel in) {
        this.icon = in.readString();
        this.title = in.readString();
        this.text = in.readString();
        this.btnInfo = in.readString();
        this.detailTxt = in.readString();
        this.detailImg = in.readString();
        this.detailUrl = in.readString();
    }

    public static final Creator<PushMsgContent> CREATOR = new Creator<PushMsgContent>() {
        @Override
        public PushMsgContent createFromParcel(Parcel source) {
            return new PushMsgContent(source);
        }

        @Override
        public PushMsgContent[] newArray(int size) {
            return new PushMsgContent[size];
        }
    };
}
